home *** CD-ROM | disk | FTP | other *** search
- Path: in2.uu.net!uis-1!lchee
- From: lchee@uis-1.UUCP (Larry Chee)
- Newsgroups: comp.lang.c
- Subject: Re: Secure from Decompiling??
- Message-ID: <5339@uis-1.UUCP>
- Date: 31 Jan 96 14:45:19 GMT
- References: <4djaq2$jd5@earth.superlink.net> <4en444$45k@news.cencom.net>
- Reply-To: lchee@uis-1.UUCP (Larry Chee)
- Organization: United Information Systems
-
- In article <4en444$45k@news.cencom.net> tanp@ns (Bill Wendling) writes:
- >Bob Stewart inexplicably wrote:
- >} I have a compiled C program containing a string that I want no one to
- >} be able to see, even with a decompiler.
- >
- >} Is there any thing to put in the code that can prevent it from being
- >} decompiled, or make the decompiled code unintelligle??
- >
- >As of yet, there is no sure way of decompiling a program. They could,
- >however, look at the executable with a hex editor and see the message.
- >You could encrypt the message within the program and then decrypt
- >it before it is used in the program.
-
- If you had a secret string and you encrypted it then yes,
- it would be difficult to see by peeking into the
- executable program. But using a debugger you could
- discover the password used to encrypt the string and
- secret string itself. Now there are ways to make debug-
- ging an executable program more difficult and there are
- ways of hiding the encryption password. But even using
- these methods you can not guarentee that someone will
- not eventually discover what you are trying to hide.
- However, you can make it more difficult and time
- consuming the task of discovering you secret string.
-
- Sometimes you can't be too paranoid,
- Lawrence D. Chee
-